project('jadeite', 'c', version: '5.0.1')

nasm = find_program('nasm')
gen_res = find_program('gen_resources.sh')

# Generator for compiling asm files
asm_gen = generator(
    nasm,
    output: '@BASENAME@.bin',
    arguments: [
        '@EXTRA_ARGS@',
        '-f', 'bin',
        '@INPUT@',
        '-o', '@OUTPUT@'
    ]
)

# Payload that gets injected into the game
subdir('game_payload')

# The injector exe and dll
subdir('injector')
